import torch
import joblib


def load_model(model_path):
    model = torch.load(model_path, map_location=torch.device('cpu'))
    return model


def load_scaler(scaler_path):
    scaler = joblib.load(scaler_path)
    return scaler
